﻿using Microsoft.AspNetCore.Mvc;

namespace RemoteSensingImageDirectServer.Models.Request.Response
{
    public class ServiceResult
    {

        public ServiceResult(int code, string? message = "", object? data = null)
        {
            this.Code = code;
            this.Message = message;
            this.Data = data;
        }
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 消息体
        /// </summary>
        public string? Message { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public object Data { get; set; }


    }
}
